lst = [1, 2, 3, 4]
 
# 将每个元素平方
squared = list(map(lambda x: x**2, lst))
print(squared)  # 输出：[1, 4, 9, 16]